<?php
header('content-type:text/html;charset=utf-8');



function foo($x){

    if ($x==1){
        return 4;
    }



    return $x*foo($x-1);
}

echo foo(5);

?>

